package com.examsage.examsage.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author examsage
 * @since 2025-07-02
 */
@Getter
@Setter
@TableName("major_course_relation")
public class MajorCourseRelation implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 关联 major_plan.id
     */
    @TableField("major_plan_id")
    private Long majorPlanId;

    /**
     * 关联 course.id
     */
    @TableField("course_id")
    private Long courseId;

    /**
     * 1: 是，0: 否
     */
    @TableField("is_required")
    private Boolean isRequired;
}
